package com.lzc.springPart.aop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class ApplicationRun {

    public static void main(String[] args) throws IOException {
        ConfigurableApplicationContext context = SpringApplication.run(ApplicationRun.class, args);
        ServiceImpl bean = context.getBean(ServiceImpl.class);
        bean.service();
        System.out.println(bean.getClass());
        System.in.read();
    }
}
